//
//  StatisticalEventViewController.m
//  MWSDKDemo
//
//  Created by 刘家飞 on 15/6/1.
//  Copyright (c) 2015年 cafei. All rights reserved.
//

#import "StatisticalEventViewController.h"
#import "MWApi.h"

@interface StatisticalEventViewController ()

@end

@implementation StatisticalEventViewController

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [MWApi pageviewStartWithName:@"eventTypeView"];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [MWApi pageviewEndWithName:@"eventTypeView"];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)typeBtnPressed:(id)sender
{
    UIButton *btn = (UIButton *)sender;
    //自定义事件，eventId为
    [MWApi setCustomEvent:@"eventId" attributes:@{@"type":btn.titleLabel.text}];
}

@end
